package ecitys.commons

class Uf {
	String codigoUF
	String nomeUF
	

	String toString(){
		codigoUF
	}
	
    static constraints = {
		codigoUF(maxSize:2, blank:false, unique:true, nullable:false)
		nomeUF(size:4..30, blank:false, unique:true, nullable:false)
		
    }
	
	static mapping = {
		schema:"public"
	}
}
